package com.shixi.dao;

import com.shixi.domain.MyOrder;

import java.util.List;

public interface OrderDao {

    /*根据买家id查询用户订单*/
    List<MyOrder> getUserOrder(String username);

    /*根据卖家id查询用户订单*/
    List<MyOrder> getUserOrderByUsername(String username);

    /*添加订单*/
    int addOrder(String id,String username,int goodsid,String time,String address,int price);

}
